package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsProvinceMapper;
import com.ruoyi.system.domain.BsProvince;
import com.ruoyi.system.service.IBsProvinceService;

/**
 * 省份设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-05
 */
@Service
public class BsProvinceServiceImpl implements IBsProvinceService 
{
    @Autowired
    private BsProvinceMapper bsProvinceMapper;

    /**
     * 查询省份设置
     * 
     * @param provinceId 省份设置ID
     * @return 省份设置
     */
    @Override
    public BsProvince selectBsProvinceById(Long provinceId)
    {
        return bsProvinceMapper.selectBsProvinceById(provinceId);
    }

    /**
     * 查询省份设置列表
     * 
     * @param bsProvince 省份设置
     * @return 省份设置
     */
    @Override
    public List<BsProvince> selectBsProvinceList(BsProvince bsProvince)
    {
        return bsProvinceMapper.selectBsProvinceList(bsProvince);
    }

    /**
     * 新增省份设置
     * 
     * @param bsProvince 省份设置
     * @return 结果
     */
    @Override
    public int insertBsProvince(BsProvince bsProvince)
    {
        return bsProvinceMapper.insertBsProvince(bsProvince);
    }

    /**
     * 修改省份设置
     * 
     * @param bsProvince 省份设置
     * @return 结果
     */
    @Override
    public int updateBsProvince(BsProvince bsProvince)
    {
        return bsProvinceMapper.updateBsProvince(bsProvince);
    }

    /**
     * 批量删除省份设置
     * 
     * @param provinceIds 需要删除的省份设置ID
     * @return 结果
     */
    @Override
    public int deleteBsProvinceByIds(Long[] provinceIds)
    {
        return bsProvinceMapper.deleteBsProvinceByIds(provinceIds);
    }

    /**
     * 删除省份设置信息
     * 
     * @param provinceId 省份设置ID
     * @return 结果
     */
    @Override
    public int deleteBsProvinceById(Long provinceId)
    {
        return bsProvinceMapper.deleteBsProvinceById(provinceId);
    }
}
